#! /usr/python
import os
import sys
import time
import signal

if __name__ == '__main__':
    print("Child:", os.getpid(), "Father:", os.getppid())
    signal.signal(signal.SIGHUP, signal.SIG_IGN)
    i = 100
    while True:
        i -= 1
        print("OK")
        time.sleep(1)
        if i <= 0:
            sys.exit(1)
